import 'package:flutter/material.dart';

class ScreenPage extends StatefulWidget {
  const ScreenPage({Key? key}) : super(key: key);

  @override
  _ScreenPageState createState() => _ScreenPageState();
}

class _ScreenPageState extends State<ScreenPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("豆瓣筛选"),

      ),
      body: Container(
        child: GridView.builder(
          gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
            crossAxisCount: 3,
            childAspectRatio: 0.75
          ),
          itemBuilder: (BuildContext cxt, int index) {
            return Container(
              margin: EdgeInsets.all(5),
              width: 100,
              color: Colors.red,

            );
          },
          itemCount: 20,
        )
      ),
    );
  }
}
